package com.leyou.favorite;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName("tb_favorite") //指定该实体类对于的数据库表
public class FavoriteDto {
    @TableId(type = IdType.AUTO) //主键ID自增
    private Long id;
    private Long userId;
    private Long skuId;// 商品id
    private String title;// 标题
    private String image;// 图片
    private Long price;// 加入购物车时的价格
    private Date createTime;
    private Long spuId;
}
